﻿<%@ Page Language="C#" MasterPageFile="~/webadmin/pages/MasterPage.master" AutoEventWireup="true" CodeFile="PhanQuyen_NhomNguoiDung_frm.aspx.cs" Inherits="webadmin_pages_DanhMuc_Dan_Toc_add"%>

<%@ Register Assembly="RadTreeView.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<%@ Register Assembly="Telerik.QuickStart" Namespace="Telerik.QuickStart" TagPrefix="cc1" %>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder_Main" Runat="Server">
    <div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>
                        Cập nhật/Thêm mới : <span style="color: #00cc00">tài khoản người dùng</span>
                    </h3>
					
					
					
				  <div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
                <div class="content-box-content">
                
                <% if (!string.IsNullOrEmpty(messageError))
      {%>
			<div class="notification error png_bg">
				<a href="#" class="close"><img src="../resources/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
				<div>
				Thông báo lỗii: <b><i><%=messageError%></i></b></div>
			</div>
			<%} %>
			        <table class="tbl_detail" width="100%">
					<tr>
					    <th class="tbl_detail_title" style="width: 163px;text-align:left;">
                            Mã nhóm</th>
					    <th class="tbl_detail_data">
					        <asp:TextBox ID="txtMa" runat="server" CssClass="text-input medium-input" Width="327px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="errforTenDanToc" runat="server" ControlToValidate="txtMa"
                                ErrorMessage="Mã nhóm không được để trống"></asp:RequiredFieldValidator>
					    </th>
					</tr>
					<tr>
					    <th class="tbl_detail_title" style="width: 163px;text-align:left;">
                            Tên nhóm</th>
					    <th class="tbl_detail_data">
					        <asp:TextBox ID="txtTen" runat="server" CssClass="text-input medium-input" Width="327px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtTen"
                                ErrorMessage="Tên nhóm không được để trống"></asp:RequiredFieldValidator>
					    </th>
					</tr>
					<tr>
					    <th class="tbl_detail_title" style="width: 163px;text-align:left; height: 54px;" align="left" valign="top">
                           <span style="vertical-align:top;">Mô tả</span></th>
					    <th class="tbl_detail_data" style="height: 54px">
                            <asp:TextBox ID="txtMoTa" runat="server" Rows="3" TextMode="MultiLine" Width="326px"></asp:TextBox></th>
					</tr>
					<tr>
					    <th class="tbl_detail_title" style="width: 163px;text-align:left;">
                            Kích hoạt</th>
					    <th class="tbl_detail_data"><asp:CheckBox ID="chkKichHoat" runat="server"/></th>
					</tr>
			    </table>
			    <br />
			        <label>Chọn danh danh mục tin muốn xem</label>
                    <table>
                        <tr>
                            <th style="width: 280px">
                                <div style="border: solid 1px; overflow: scroll;min-height:300px; height:300px; width:100%;">
                                    <asp:TreeView ID="_tree" runat="server" BorderStyle="None" Height="100%" ImageSet="News"
                                        NodeIndent="10" NodeWrap="True" ShowLines="True" ExpandDepth="1" ShowCheckBoxes="All">
                                        <ParentNodeStyle Font-Bold="False" ImageUrl="~/webadmin/images/ADFAV_16.PNG" />
                                        <HoverNodeStyle Font-Underline="True" />
                                        <SelectedNodeStyle Font-Underline="False" HorizontalPadding="0px"
                                            VerticalPadding="0px" BackColor="White" BorderColor="#FF8080" BorderStyle="None" ForeColor="#0000C0" />
                                        <NodeStyle Font-Names="Arial" Font-Size="10pt" ForeColor="Black" HorizontalPadding="5px"
                                            NodeSpacing="0px" VerticalPadding="0px" />
                                        <RootNodeStyle ImageUrl="~/webadmin/images/categories_16.png" />
                                        <LeafNodeStyle ImageUrl="~/webadmin/images/tag_green.png" />
                                    </asp:TreeView>
                                </div>
                            </th>
                            <th>
                                
                                    <table  class="tbl_list" width="100%" style="height:100%; padding-left:5px;border:1px solid #ccc">
                                        <tr class="tbl_list_head">
                                            <td rowspan="2" style="width: 250px; vertical-align: middle; text-align: left;">
                                                <asp:CheckBox ID="chkMenu" runat="server" />
                                                Thực đơn
                                            </td>
                                            <th style="width: 44px; text-align:center; height: 13px" title="Cho phép hiển thị hay không">
                                                View</th>
                                            <th style="width: 44px; text-align:center; height: 13px" title="Cho phép thêm mới hay không">
                                                Add</th>
                                            <th style="width: 44px; text-align:center; height: 13px">
                                                Edit</th>
                                            <th style="width: 44px; text-align:center; height: 13px">
                                                Delete</th>
                                            <th style="width: 44px; text-align:center; height: 13px">
                                                Print</th>
                                            <th style="width: 44px; text-align:center; height: 13px">
                                                Import</th>
                                            <th style="width: 44px; text-align:center; height: 13px">
                                                Export</th>
                                            <th style="width: 44px; text-align:center; height: 13px">
                                                Access</th>
                                        </tr>
	                                    <tr class="tbl_list_head">
                                            <th style="width:44px; height: 13px; text-align:center;" title="Cho phép hiển thị hay không">
                                                <asp:CheckBox ID="chkView" runat="server" /></th>
                                            <th style="width:44px; height: 13px; text-align:center;" title="Cho phép thêm mới hay không">
                                                <asp:CheckBox ID="chkAdd" runat="server" /></th>
                                            <th style="width:44px; height: 13px; text-align:center;">
                                                <asp:CheckBox ID="chkEdit" runat="server" /></th>
                                            <th style="width:44px; height: 13px; text-align:center;">
                                                <asp:CheckBox ID="chkDelete" runat="server" /></th>
                                            <th style="height: 13px; width: 44px; text-align:center;">
                                                <asp:CheckBox ID="chkPrint" runat="server" /></th>
                                            <th style="width:44px; height: 13px; text-align:center;">
                                                <asp:CheckBox ID="chkImport" runat="server" /></th>
                                            <th style="width: 44px; height: 13px; text-align:center;">
                                                <asp:CheckBox ID="chkExport" runat="server" /></th>
                                            <th style="width: 44px; height: 13px; text-align:center;">
                                                <asp:CheckBox ID="chkAccess" runat="server" /></th>
                                        </tr>
                                        
                                        <asp:Repeater ID="rpt_user_list" runat="server" OnItemDataBound="rpt_user_list_ItemDataBound">
                                        <ItemTemplate>
	                                            <tr class="tbl_list_odl" style="text-align:center;">
	                                                <td style="text-align:left;"><asp:CheckBox ID="chkMenu_list" runat="server"  Checked="true"/>
	                                                    + 
	                                                   <%# Eval("ten_thuc_don")%>
	                                                </td>
	                                                <td style="text-align:center; height:25px"><asp:CheckBox ID="chkView_list" runat="server"  Checked="true"/>
		                                                <%//# //DataBinder.Eval(Container.DataItem, "AllowView")%></td>
		                                            <td style="text-align:center; height:25px"><asp:CheckBox ID="chkAdd_list" runat="server"  Checked="true"/>
		                                                <%//# //DataBinder.Eval(Container.DataItem, "AllowAdd")%></td>
		                                            <td style="text-align:center; height:25px"><asp:CheckBox ID="chkEdit_list" runat="server"  Checked="true"/>
		                                                <%//# //DataBinder.Eval(Container.DataItem, "AllowEdit")%></td>
		                                            <td style="text-align:center; height:25px"><asp:CheckBox ID="chkDelete_list" runat="server"  Checked="true"/>
		                                                <%//# //DataBinder.Eval(Container.DataItem, "AllowDelete")%></td>
		                                            <td style="text-align:center; height:25px"><asp:CheckBox ID="chkPrint_list" runat="server"  Checked="true"/>
		                                                <%//# //DataBinder.Eval(Container.DataItem, "AllowPrint")%></td>
		                                            <td style="text-align:center; height:25px"><asp:CheckBox ID="chkImport_list" runat="server"  Checked="true"/>
		                                                <%//# DataBinder.Eval(Container.DataItem, "AllowImport")%></td>
		                                            <td style="text-align:center; height:25px"><asp:CheckBox ID="chkExport_list" runat="server"  Checked="true"/>
		                                                <%//# //DataBinder.Eval(Container.DataItem, "AllowExport")%></td>
		                                            <td style="text-align:center; height:25px"><asp:CheckBox ID="chkAccess_list" runat="server"  Checked="true"/>
		                                                <%//# //DataBinder.Eval(Container.DataItem, "AllowAccess")%></td>
	                                            </tr>      
	                                        </ItemTemplate>
                                        </asp:Repeater>
                                    </table>
                                
                            </th>
                        </tr>
                    </table>
                    <p>
                     <asp:Button CssClass="button" ID="btnOk" runat="server" Text="Lưu Thông Tin" OnClick="btnOk_Click" />&nbsp;
                      <a href="PhanQuyen_NguoiDung_list.aspx">[Quay lại]</a>
                    </p>
                 </div>
                 </div>
</asp:Content>

